package com.bean;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonIgnore;

/**
 * Created by tancw on 2017/2/13.
 */
public class JsApiTicket implements Serializable {
    private String name;
    private String ticket;
    private Date create_date = new Date();

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTicket() {
        return ticket;
    }

    public void setTicket(String ticket) {
        this.ticket = ticket;
    }

    public Date getCreate_date() {
        return create_date;
    }

    public void setCreate_date(Date create_date) {
        this.create_date = create_date;
    }

    @JsonIgnore
    public boolean isAva() {
        return System.currentTimeMillis() - this.create_date.getTime() < 7200L * 1000;
    }
}
